﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="QueryTotalIssuing.aspx.cs" Inherits="NetDon.OA.Portal.eLogisticsQuery.QueryTotalIssuing" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

        function searchEntruck(b) {
            
            $dialog('<%=ResolveUrl("~/eLogisticsQuery/ReportView.aspx") %>?ReportCode='+b, { width: $common.getClientBounds().width, height: window.top.$common.getClientBounds().height - 100 }, function (result) {
                if (result) {

                }
            });
        }
</script>
    <style type="text/css">

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanelFlow" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <NetDon:FormPanel ID="PanelCondition" runat="server" CaptionAlign="NotSet" RepeatColumns="3">
                                <Items>
                                   
                                    <NetDon:FormItem HeaderText="时间段">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtReceivingOrderDateStart" runat="server" Width="75px"></asp:TextBox>
                                            <asp:CalendarExtender ID="txtReceivingOrderDateStart_CalendarExtender" runat="server"
                                                Enabled="True" TargetControlID="txtReceivingOrderDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label2" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtReceivingOrderDateEnd" runat="server" Width="75px"></asp:TextBox>
                                            <asp:CalendarExtender ID="txtReceivingOrderDateEnd_CalendarExtender" runat="server"
                                                Enabled="True" TargetControlID="txtReceivingOrderDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    
                                    <NetDon:FormItem HeaderText="客户">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlCustomer" runat="server" DataSourceID="ObjectDataSourceCustomers"
                                                DataTextField="CustomerName" DataValueField="CustomerId" AppendDataBoundItems="true"
                                                OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" AutoPostBack="True">
                                            </asp:DropDownList>
                                            <asp:ObjectDataSource ID="ObjectDataSourceCustomers" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="RetrieveCustomers" TypeName="NetDon.OA.Business.MiscDataSource">
                                                <SelectParameters>
                                                    <asp:Parameter Name="areaId" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="承运货物">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlGoodsShippedTypeId" AppendDataBoundItems="True" runat="server"
                                                DataTextField="Name" DataValueField="OID">
                                            </asp:DropDownList>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="线路分类">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlRouteTypeId" DataSourceID="ddsRouteTypeId" AppendDataBoundItems="True"
                                                runat="server" DataTextField="Name" DataValueField="Value">
                                            </asp:DropDownList>
                                            <NetDon:DictionaryDataSource ID="ddsRouteTypeId" runat="server" CategoryName="线路分类"
                                                EmptyItemType="Select">
                                            </NetDon:DictionaryDataSource>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                </Items>
                            </NetDon:FormPanel>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Button ID="btnSearch" SkinID="Button60" runat="server"   OnClick="btnSearch_Click"
                                Text="查询"></asp:Button>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <div style="margin-top: 10px">
                <NetDon:GridView ID="gridOrderTotalList" runat="server" AutoGenerateColumns="False" AllowSorting="true"
                   OnRowDataBound="gridOrderTotalList_RowDataBound"  >
                    <Columns>
                        <NetDon:TemplateField HeaderText="已装车">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalEntrucking');"><%#Eval("TotalEntrucked") %></a>
                                
                            </ItemTemplate>
                            
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="未装车">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalNonEntrucking');"><%#Eval("TotalNonEntrucked")%></a>
                                
                            </ItemTemplate>
                            
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText='已调车'>
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalShunted');"><%#Eval("TotalShunted")%></a>
                                
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText='未调车'>
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalNonShunted');"><%#Eval("TotalNonShunted")%></a>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="已到货">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalTracked');"><%#Eval("TotalTrackCompleted")%></a>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="未到货">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalNonTracked');"><%#Eval("TotalNonTrackCompleted")%></a>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                       <NetDon:TemplateField HeaderText="已回单">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalReceived');"><%#Eval("TotalReceiveCompleted")%></a>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="未回单">
                            <ItemTemplate>
                                <a href="javascript:searchEntruck('TotalNonReceived');"><%#Eval("TotalNonReceiveCompleted")%></a>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                       
                    </Columns>
                </NetDon:GridView>
                
            </div>
          

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
